package com.molichuxing.services.infrastructure.service;

import java.time.LocalDateTime;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.PhoneRecognitionCreateDto;
import com.molichuxing.services.infrastructure.dto.response.PhoneRecognitionDto;

/**
 * 
 * @author liyg
 * 手机号验证服务
 * 2019-08-15
 * 
 */
public interface PhoneRecognitionService extends RootService {

	/**
	 * 获取最近手机号验证是否通过
	 * @param userId
	 * @return
	 */
	PhoneRecognitionDto getVerifyResult(Integer userId);
	
	/**
	 * 获取验证结果
	 * @param userId
	 * @param verifyTime
	 * @return
	 */
	Boolean getVerifyResult(Integer userId,LocalDateTime verifyTime);
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	Boolean create(PhoneRecognitionCreateDto createDto);
}
